package com.zhuxulin.java.email.busness;

import com.zhuxulin.java.email.db.DBQuery;
import com.zhuxulin.java.email.db.bean.QQRowBean;
import com.zhuxulin.java.email.fildder.ILineHanlder;
import com.zhuxulin.java.email.utils.ReadFileUtil;
/**
 * 将收集好的号码导入数据库
 * @author ZhuXulin
 *
 */
public class InsertQQToDB {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//收集号的号码文件
		String fileName = "C:\\Users\\Hacker\\Desktop\\20140623.txt";
		ReadFileUtil.readFileByLines(fileName, new ILineHanlder() {
			@Override
			public void onReadStart(String line, int num) {
				QQRowBean bean = new QQRowBean();
				bean.setMail(line);
				bean.setTimes(0);
				DBQuery.getInstance().initInsert(bean);
			}
		});
	}

}
